package br.net.woodstock.tickettoride.spring.web.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import br.net.woodstock.rockframework.web.faces.spring.ViewScope;
import br.net.woodstock.tickettoride.api.manager.ApplicationService;
import br.net.woodstock.tickettoride.api.manager.TicketService;
import br.net.woodstock.tickettoride.web.jsf.manager.common.AbstractTicketBean;

@Controller("ticketBean")
@Scope(ViewScope.VIEW_SCOPE)
public class TicketBean extends AbstractTicketBean {

	private static final long	serialVersionUID	= -4072527725937263619L;

	@Autowired(required = true)
	private ApplicationService	applicationService;

	@Autowired(required = true)
	private TicketService		ticketService;

	@Override
	public ApplicationService getApplicationService() {
		return this.applicationService;
	}

	@Override
	public TicketService getTicketService() {
		return this.ticketService;
	}

}
